package com.xinou.daily_report.PO;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xinou.common.base.database.Page;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * @创建人 wdl
 * @创建时间 2021/6/11
 * @描述
 */
@Data
public class WeekResultPO extends Page {


    @ApiModelProperty(value = "id")
    private Long id;

    @ApiModelProperty(value = "承诺内容")
    private String promise;

    @ApiModelProperty(value = "完成情况")
    private String complete;

    @ApiModelProperty(value = "改进措施")
    private String improve;

    @ApiModelProperty(value = "0表示计划内，1表示计划外")
    private Integer resultType;

    @ApiModelProperty(value = "周id")
    private Long weekId;


    @ApiModelProperty(value = "用户id")
    private Long userId;

    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    @ApiModelProperty(value = "筛选时间")
    private LocalDateTime selectTime;


//    @JsonFormat(shape = JsonFormat.Shape.STRING, pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
//    @ApiModelProperty(value = "筛选时间")
//    private LocalDateTime insertTime;

//    @ApiModelProperty(value = "插入时间 yyyy-MM-dd HH:mm:ss", example = "2020-11-28 00:12:23", required = true)
//    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
//    @TableField(value = "insert_time", fill = FieldFill.INSERT_UPDATE)
//        private LocalDateTime insertTime;


    @ApiModelProperty(value = "1表示今日，2表示历史，默认表示全部")
    private Integer isNow;

    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime weekResultTimeStart;

    @JsonFormat(timezone = "GMT+8", shape = JsonFormat.Shape.STRING, pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime weekResultTimeEnd;

}
